<html>
 <head>
	<title>[var.TITLE]</title>
	<link href="[var.ROOT_CSS_DIR]/main.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
	<link href="[var.ROOT_CSS_DIR]/facet/style.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">	
	<script type="text/javascript" src="[var.ROOT_DIR]js/doiMenuDOM.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/functions.js"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.php"></script>
	<script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.cfg"></script>
 </head>
 <body bgcolor="FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
	<table border="0" cellspacing="0" cellpadding="0" width="100%" align="[var.POSITION]">
		<tr>
			<td>[tbs_include.onshow;file=[var.HTMLHeader];getob;]</td>
		</tr>
		<tr>
			<td>
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>				
				<tr>
					<td background="[var.ROOT_IMG_DIR]/back-menu.gif">
					<table border="0" cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td>
      			  			<script language="JavaScript" type="text/JavaScript">menu.Build();</script>
						  </td>
						  <td class="head-login">Login as [var.USERPROFILE_NAME]</td>
						</tr>
					  </table>
					</td>
				</tr>
				
				<tr>
					<td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>				
			</table>
			</td>
		</tr>
		<tr height="100%">
			<td>
			<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
				<tr valign="top">
					<td width="100%">
						<table border="0" cellspacing="0" cellpadding="0" width="100%">			
							<tr>
								<td class="head-path"></td>
								<td class="corner-date">[var.CORNER_DATE]</td>
							</tr>
						</table>
						<table border="0" cellspacing="0" cellpadding="5" width="100%">
							<tr>
								<td class="FacetHeaderContent" align="left">.:Setup Customer:. </td>
							</tr>
						</table>
						<table border="0" cellspacing="0" cellpadding="5" width="100%">
							<tr>
								<td class="contentTitle">[tbs_check;block=tr;if [var.USER_JUSTVIEW]=1]
								Menu
								</td>
							</tr>
							<tr>
								<td class="content2">[tbs_check;block=tr;if [var.USER_JUSTVIEW]=1]
								<table cellspacing="2" cellpadding="0">
								 <tr>
								   <td>[tbs_check;block=td;if [var.USER_CANINSERT]=1]
								     <input type="button" name="Action" value="Add New" class="button" onClick="self.location.replace('[sys.script_name]?PageMode=Form')">
								   </td>
								   <td>[tbs_check;block=td;if [var.USER_CANDELETE]=1]
								    <input type="button" name="Action" value="Delete" class="button" onClick="if (confirm('Are you sure want to delete ?')) {[var.HTMLGridList].action='[sys.script_name]?Action=Delete&PageNum=[var.PageNum]';[var.HTMLGridList].submit();}">
								   </td>
                                                                                   <td>
								     <input type="button" name="Action" value="Done" class="button" onClick="self.location.replace('[var.SERVER_URL]')">
								   </td>
								 </tr>
								</table>
								</td>
							</tr>
							<tr>
								<td class="content2">
									<table border="0" cellspacing="0" cellpadding="0">
									<form>
										<tr>
											<td class="fieldCaption">Customer Code</td>
											<td class="fieldCaption">:</td>
											<td>
											<input type="text" name="custCodeSearch" size="35" maxlength="50" class="input" value="[var.FCode]">											
											</td>
										</tr>
                                                                        
										<tr>
											<td class="fieldCaption">Customer Name</td>
											<td class="fieldCaption">:</td>
											<td>
											<input type="text" name="custSearch" size="35" maxlength="50" class="input" value="[var.FNama]">
											</td>
										</tr>
                                                                                <tr>
											<td class="fieldCaption">Customer Type</td>
											<td class="fieldCaption">:</td>
											<td>
											<input type="text" name="custTypeSearch" size="35" maxlength="50" class="input" value="[var.FType]">											
											</td>
										</tr>
										<tr>
											<td class="menuHeader"></td>
											<td class="menuHeader"></td>
											<td align="right">
											<input type="submit" name="Action" value="Search" class="button" >
											</td>
										</tr>
									</form>
									</table>								
								</td>
							</tr>
							<tr>
								<td>
								</td>
							</tr>														
							<tr>
								<td >&nbsp;</td>
							</tr>							
						</table>					
						<table border="0" cellspacing="0" cellpadding="0" width="100%">
						    <tr>
						      <td>
						 <!-- GRID SECTION -->
									<table border="0" width="100%" cellpadding="3" cellspacing="1" class="FacetFormTABLE" align="left">
									<form method=post name="[var.HTMLGridList]" >
									  <tr>
									    <td nowrap class="FacetColumnTD" align="center"></td>
									  	<td nowrap class="FacetColumnTD" align="center">No.</td>
									    <td nowrap class="FacetColumnTD" align="center">Code</td>
									    <td nowrap class="FacetColumnTD" align="center">Name</td>
									    <td nowrap class="FacetColumnTD" align="center">Address</td>
									    <td nowrap class="FacetColumnTD" align="center">Phone/Fax</td>
									    <td nowrap class="FacetColumnTD" align="center">Balance</td>
									    <td nowrap class="FacetColumnTD" align="center">Limit</td>
                                                                                              <td nowrap class="FacetColumnTD" align="center">Type</td>
									  </tr>

									  <tr>
									    <td nowrap class="FacetDataTD"><input type="checkbox" name="txtCheck[blg.#]" value="[blg.kodecustomer]" class="inputRadio"></td>
									    <td nowrap class="FacetDataTD">[blg.#]</td>
									    <td class="FacetDataTD"><a href="[var.FileName]?[bln.PRIMARY_KEY]=[blg.kodecustomer]&PageMode=Form">[blg.kodecustomer]</a></td>
									    <td class="FacetDataTD">[blg.nama;block=tr;]</td>
									    <td class="FacetDataTD">[blg.alamat]</td>
									    <td class="FacetDataTD">[blg.notelp]</td>
									    <td class="FacetDataTD" align="right">[blg.balance;frm='0,000.00']</td>
									    <td class="FacetDataTD" align="right">[blg.limi;frm='0,000.00']</td>
                                                                                              <td class="FacetDataTD" align="right">[blg.kdtype]</td>
									  </tr>

									  <tr>
									    <td colspan="10" class="FacetDataTD">[blg;block=tr;nodata]No records</td>
									  </tr>

									  <tr>
									    <td colspan="10" nowrap class="FacetColumnTD">[tbs_check.1;block=tr;if [var.RecCnt]!=0]
											<table border="0" align="left" cellpadding="0" cellspacing="0">
											  <tr align="center">[tbs_check.1;block=table;if [var.RecCnt]!=0]
											    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.first;endpoint;friend2=a]&custSearch=[var.FNama]&custCodeSearch=[var.FCode]&custTypeSearch=[var.FType]">|&lt;</a></td>
											    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.prev;endpoint;friend2=a]&custSearch=[var.FNama]&custCodeSearch=[var.FCode]&custTypeSearch=[var.FType]">&lt;</a></td>
											    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.page;block=td]&custSearch=[var.FNama]&custCodeSearch=[var.FCode]&custTypeSearch=[var.FType]">[nv.page]</a></td>
											    <td width="16" bgcolor="#B7B3B7"><strong>[nv.page;block=td;currpage]</strong></td>
											    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.next;endpoint;friend2=a]&custSearch=[var.FNama]&custCodeSearch=[var.FCode]&custTypeSearch=[var.FType]">&gt;</a></td>
											    <td width="16" class="FacetColumnTD"><a href="[sys.script_name]?PageNum=[nv.last;endpoint;friend2=a]&custSearch=[var.FNama]&custCodeSearch=[var.FCode]&custTypeSearch=[var.FType]">&gt;|</a></td>
											  </tr>
											</table>									    
									    </td>
									  </tr>
									  </form>
									</table>
						<!-- GRID SECTION -->												 
						       </td>						      
						 	</tr>
						 	<tr>
						 	  <td>
					 	  
						 	  &nbsp;
						 	  </td>
						 	</tr>
							</table>
					</td>
				</tr>
			</table>

			</td>
		</tr>
		<tr>
			<td>
			<table border="0" cellspacing="0" cellpadding="0" width="100%">
				<tr>
					<td class="footer1"><img src="images/spacer.gif" height="1" width="1"></td>
				</tr>
				<!--tr>
					<td class="footer2">Prototype Test - Web Application</td>
				</tr-->
			</table>
			</td>
		</tr>		
 	</table>
 </body>
</html>
